/*
 * HelpAbout.java
 *
 * Created on 01 July 2004, 09:25
 * Copyright (C) 2004, Velocityme Partnership
 */

package com.velocityme.client.gui;

import com.velocityme.client.gui.exception.ExceptionWindow;
import com.velocityme.interfaces.KeySession;
import java.rmi.RemoteException;

/**
 *
 * @author  Robert
 */
public class HelpAbout extends javax.swing.JDialog {
    
    /** Creates new form HelpAbout */
    public HelpAbout(java.awt.Frame parent, boolean modal, KeySession p_key) {
        super(parent, modal);
        initComponents();
        try {
            jLabelServerVersion.setText(p_key.getServerImplementationVersion());
        }
        catch(RemoteException e) {
            ExceptionWindow.showError(e);
        }
        jLabelClientVersion.setText(this.getClass().getPackage().getImplementationVersion());
        pack();
        setLocationRelativeTo(null);
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    private void initComponents() {//GEN-BEGIN:initComponents
        java.awt.GridBagConstraints gridBagConstraints;

        jLabelWelcome = new javax.swing.JLabel();
        jLabelServer = new javax.swing.JLabel();
        jLabelServerVersion = new javax.swing.JLabel();
        jLabelClient = new javax.swing.JLabel();
        jLabelClientVersion = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLabelRobert = new javax.swing.JLabel();
        jLabelBarry = new javax.swing.JLabel();

        getContentPane().setLayout(new java.awt.GridBagLayout());

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        jLabelWelcome.setFont(new java.awt.Font("MS Sans Serif", 1, 11));
        jLabelWelcome.setText("Welcome to Velocityme");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        getContentPane().add(jLabelWelcome, gridBagConstraints);

        jLabelServer.setText("Server Version:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        getContentPane().add(jLabelServer, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        getContentPane().add(jLabelServerVersion, gridBagConstraints);

        jLabelClient.setText("Client Version:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        getContentPane().add(jLabelClient, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        getContentPane().add(jLabelClientVersion, gridBagConstraints);

        jLabel1.setText("Developed by:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        getContentPane().add(jLabel1, gridBagConstraints);

        jLabelRobert.setText("Robert Crida");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        getContentPane().add(jLabelRobert, gridBagConstraints);

        jLabelBarry.setText("Barry Radloff");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
        getContentPane().add(jLabelBarry, gridBagConstraints);

        pack();
    }//GEN-END:initComponents
       
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabelBarry;
    private javax.swing.JLabel jLabelClient;
    private javax.swing.JLabel jLabelClientVersion;
    private javax.swing.JLabel jLabelRobert;
    private javax.swing.JLabel jLabelServer;
    private javax.swing.JLabel jLabelServerVersion;
    private javax.swing.JLabel jLabelWelcome;
    // End of variables declaration//GEN-END:variables
    
}
